package oo.day04;

public class Doctor  extends Person{
    String level;

    public Doctor(String name, int age, String address, String level) {
        super(name, age, address);
        this.level = level;
    }

    @Override
    void sayhi() {
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，家住"+address+",我的职业为"+level);
    }
}
